<?php
# PMB Online
# Aplikasi PMB Online untuk Pendaftaran Calon Mahasiswa di PT/PTS Indonesia
# 
# version 1.0
# class daftar_cetak
# file
# created Jan 23, 2013 3:37:10 AM
# 
# (c)2012, arif.laksito@gmail.com

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
?>
<div class="row ins">
    <div class="span11">
        <legend>Cetak Data Pendaftar</legend>
        <form action="" method="post" class="form-search">
            <label>No.Daftar</label><br />
            <input type="text" class="input-small" name="nodaf" value="<?php echo $post['nodaf'] ?>"/>
            <button class="btn btn-success"><i class="icon-search"></i> Cari</button>
        </form>

        <?php if($post):?>
        <?php if ($mhs): ?>
            <legend>Data Pendaftar</legend>
            <dl class="dl-horizontal">
                <dt>No.Daftar</dt>
                <dd><?php echo $mhs['nodaf'] ?></dd>
                <dt>Gelombang</dt>
                <dd><?php echo $mhs['nama_gel'] ?></dd>
                <dt>Tgl.Daftar</dt>
                <dd><?php echo mdate('%d %M %Y', mysql_to_unix($mhs['tgl_daftar'])) ?></dd>
                <dt>Jenis Pendaftaran</dt>
                <dd><?php echo ($mhs['status_daftar'] == 0) ? "Reguler" : "Pindahan" ?></dd>
                <dt>Nama Lengkap</dt>
                <dd><?php echo $mhs['nama_lengkap'] ?></dd>
                <dt>Tempat/Tgl.Lahir</dt>
                <dd><?php echo $mhs['tempat_lahir'] . '/' . mdate('%d %M %Y', mysql_to_unix($mhs['tgl_lahir'])) ?></dd>
                <dt>Pilihan Jurusan</dt>
                <dd>
                    <?php $jur = explode(',', $mhs['pilihan_jur'])?>
                    <?php foreach($jur as $j){ echo ($j!='')?$j.'<br />':""; }?>
                </dd>        
            </dl>
            <div>
                <a target="_blank" class="btn btn-small btn-success" href="<?php echo base_url('web/cetak_bukti/'.$mhs['nodaf'])?>">
                    <i class="icon-print"></i> Bukti Daftar
                </a> 
                &nbsp;&nbsp;  
                <a target="_blank" class="btn btn-small btn-info" href="<?php echo base_url('web/cetak_biaya/'.$mhs['nodaf'])?>">
                    <i class="icon-print"></i> Perkiraan Biaya
                </a>  
            </div>
        <?php else:?>
            Data Pendaftar tidak ditemukan, Periksa kembali No.Daftar Anda
        <?php endif ?>
        <?php endif ?>    

    </div>



</div>    